package com.example.project.common.tools;

/**
 * @author: Jerry.Zhang
 * @date: 2022/3/22 9:42
 */
public enum ResponseEnum {


    FIND_SUCCESS("200", "查询成功 i'm your father"),
    UPDATE_SUCCESS("200", "更新成功"),
    SUCCESS("200", "成功"),
    BUY_SUCCESS("200", "购买成功"),
    SEND_MESSAGE_SUCCESS("200", "发送短信成功"),
    VERIFY_MESSAGE_SUCCESS("200", "验证码验证成功"),
    USERNAME_NOT_FOUND("301", "用户名不存在"),
    USERNAME_OR_PASSWORD_INVALIDATE("302", "用户名或者密码错误"),
    THE_USER_IS_FROZEN("303", "用户被冻结"),
    NOT_SUFFICIENT_FUNDS("305", "余额不足"),
    FIND_NOT_GOOD("306", "商品不存在"),
    GOOD_NUMBER_NOT("307", "秒杀的商品数量不够哦"),
    ROLE_NOT_MENU("308", "角色没有菜单"),
    NOT_HAS_TOKEN("309", "请先登录"),
    TOKEN_ERROR("310", "伪造token令牌?fuck you"),
    TOKEN_TIMEOUT("311", "获取用户超时,请重新登录"),
    NO_ACTION_RIGHTS("312", "没有该权限"),
    SMS_SEND_ERROR_BUSINESS_LIMIT_CONTROL("313", "短信发送过于频繁"),
    SMS_SEND_ERROR("314", "短信发送失败"),
    AUTHCODE_ERROR("315", "验证码错误"),
    USER_EXIST("316", "用户已存在"),
    INPUT_PHONE_NUMBER("316", "请输入手机号"),
    NOT_FIND("317", "没有找到"),
    TIME_HAS_NOT_ARRIVED("318", "还未到秒杀开启时间"),
    MOVIE_END("319", "电影已经结束了"),
    MOVIE_NOT_START("320", "电影还未到放映时间哦"),
    TIME_OUT_A("321", "超时异常A"),
    TIME_OUT_B("321", "超时异常B"),
    FLOW_BLOCK("322", "超时异常"),
    DEG_BLOCK("323", "降级异常异常"),
    NOT_ACTIVITY("324", "没有该活动"),
    IN_ACTIVITY("325", "已经参加了活动"),
    NOT_ORDER("326", "没有该订单"),
    HELPED("327", "您已经助力过啦"),
    HELP_COUNT_MUCH("328", "你的助力次数已达上线"),
    JOIN_ACTIVE("329", "请先领取奖品"),
    ORDER_SUCCESS("200", "订单完成,请去查看奖品列表"),
    INADEQUATE_IN_NUMBER("330", "抽奖次数不够了"),
    BOX_OVER("331", "盲盒抽完了"),
    UNKNOW_ABNORMAL("500", "发生未知异常请联系管理...");

    private String code;
    private String message;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    ResponseEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

}
